window.onload = function(){
	document.getElementById("btn").onclick = function(){
		var ousername = document.getElementById("username");
		var opassword = document.getElementById("userpwd");
		if(ousername.value == "M_co" && opassword.value == "cjl12300."){
			window.location.href="other_html/table.html";
		}else{
			alert("用户名或密码错误！");
		}
		window.history.back(-1);
	}
	document.getElementById("userpwd").onkeydown = function(){
		if(event.keyCode == 13){
			document.getElementById("btn").onclick();
		}
	}
}